package com.xujl.mvcbind.ui.list.view;

import com.xujl.fastlib.base.BaseRvAdapter;
import com.xujl.fastlib.base.BaseView;
import com.xujl.fastlib.base.IControl;
import com.xujl.mvcbind.databinding.FragmentGridListBinding;

import androidx.recyclerview.widget.GridLayoutManager;


/**
 * <pre>
 *     author : xujl
 *     e-mail : 597355068@qq.com
 *     time   : 2019/08/20
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class GridListFragmentView extends BaseView<FragmentGridListBinding> {
    @Override
    public void init (IControl control) {
        mBind.rv.setLayoutManager(new GridLayoutManager(control.exposeContext(),2));
    }

    public void setAdapter (BaseRvAdapter adapter) {
        mBind.rv.setAdapter(adapter);
    }
}
